package com.cjq.user.service.impl;

import com.cjq.common.domain.User;
import com.cjq.common.result.Result;
import com.cjq.user.mapper.UserMapper;
import com.cjq.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public Result<User> findUser(String userName) {
        User user = userMapper.findUser(userName);
        return Result.success(user);
    }
}
